]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Use font-relative sizes for menu widths
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 4 Sep 2015 16:54:44 +0000 (18:54 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 15 Oct 2015 17:56:44 +0000 (19:56 +0200)
For menus, it makes more sense to pick a width that fits a reasonable amount
of content rather than a fixed amount of screen estate, so use font-relative
sizes instead of pixel values.

https://bugzilla.gnome.org/show_bug.cgi?id=754581

data/theme/gnome-shell-high-contrast.css
data/theme/gnome-shell-sass
data/theme/gnome-shell.css

index feb2b5008b7a3d3268c38d72540aeb9a1a8a3940..dcb2ce810372df0f16af6ad7cf17eb277ca9e74c 100644 (file)
@@ -408,9 +408,9 @@ StScrollBar {
   spacing-rows: 15px;
   spacing-columns: 1em; }
 
-/* Popvers/Menus */
+/* Popovers/Menus */
 .popup-menu {
-  min-width: 200px; }
+  min-width: 15em; }
   .popup-menu .popup-sub-menu {
     background-color: black;
     box-shadow: inset 0 -1px 0px #0d0d0d; }
@@ -752,7 +752,7 @@ StScrollBar {
 
 /* Message list */
 .message-list {
-  width: 420px; }
+  width: 31.5em; }
 
 .message-list-sections {
   spacing: 1.5em; }
@@ -823,7 +823,7 @@ StScrollBar {
     color: transparent; }
 
 .aggregate-menu {
-  min-width: 280px; }
+  min-width: 21em; }
   .aggregate-menu .popup-menu-icon {
     padding: 0 4px; }
 
index 83b896b0e13725d7045ba3708265f6689952586c..d85e53fbd9cd2d80aed543cf4a436413d6985ebe 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 83b896b0e13725d7045ba3708265f6689952586c
+Subproject commit d85e53fbd9cd2d80aed543cf4a436413d6985ebe
index 6ae2302f66bd2bcded1fedc96320d2003c24c813..7c7a271447de6f38319daae71cc883c9ffab95e0 100644 (file)
@@ -408,9 +408,9 @@ StScrollBar {
   spacing-rows: 15px;
   spacing-columns: 1em; }
 
-/* Popvers/Menus */
+/* Popovers/Menus */
 .popup-menu {
-  min-width: 200px; }
+  min-width: 15em; }
   .popup-menu .popup-sub-menu {
     background-color: #343a3a;
     box-shadow: inset 0 -1px 0px #282c2c; }
@@ -752,7 +752,7 @@ StScrollBar {
 
 /* Message list */
 .message-list {
-  width: 420px; }
+  width: 31.5em; }
 
 .message-list-sections {
   spacing: 1.5em; }
@@ -823,7 +823,7 @@ StScrollBar {
     color: transparent; }
 
 .aggregate-menu {
-  min-width: 280px; }
+  min-width: 21em; }
   .aggregate-menu .popup-menu-icon {
     padding: 0 4px; }